<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: C:/code/SkyGameEngine2d/src/ui/Widget.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_da5c6b39c0a2f54e57df6799511cd3ab.html">ui</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Widget.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">    Copyright (C) 2019 Zongming Liu &lt;1849059316@qq.com&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">    This program is free software; you can redistribute it and/or modify</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">    it under the terms of the GNU General Public License as published by</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">    the Free Software Foundation; either version 2 of the License, or</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">    (at your option) any later version.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">    This program is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">    GNU General Public License for more details.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">    You should have received a copy of the GNU General Public License along</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">    with this program; if not, write to the Free Software Foundation, Inc.,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#ifndef Widget_h__</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#define Widget_h__</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;array&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;../base/Color.h&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;../base/Object.h&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;../action/IActableObject.h&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;../ui/Font.h&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;../base/Matrix.h&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;../base/Vector.h&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;../base/Rect.h&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span>SkyEngine2d</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">class </span>Scale9Image;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">class </span>EventMouse;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">class </span>EventKey;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">class </span>UiCore;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">class </span>EventFocus;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">class </span>EventCharacter;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">class </span>EventWidgetMove;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">class </span>EventWidgetActive;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">class </span>Camera;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keyword">class </span>EventResize;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">class </span>WidgetEvent;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">class </span>IEvent;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">class </span>Render;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_sky_engine2d_1_1_widget.html">   56</a></span>&#160;    <span class="keyword">class </span>SGE_API <a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        :<span class="keyword">public</span> <a class="code" href="class_sky_engine2d_1_1_i_movable_object.html">IMovableObject</a>, <span class="keyword">public</span> <a class="code" href="class_sky_engine2d_1_1_object.html">Object</a>&lt;Widget&gt;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    {</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        UI_CLASS(<a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>)</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_sky_engine2d_1_1_widget.html#a4cd82a245130df2d26cf737e65290656">   65</a></span>&#160;        <span class="keyword">enum class</span> <a class="code" href="class_sky_engine2d_1_1_widget.html#a4cd82a245130df2d26cf737e65290656">FocusPolicy</a></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            TabFocus = 0x01,  </div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            ClickFocus = 0x10,</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            NoFocus = 0x00  </div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        };</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">   73</a></span>&#160;        <span class="keyword">enum class</span> <a class="code" href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">WidgetState</a></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            Disabled,   </div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            Hover,      </div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            Pressed,    </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            Normal,     </div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        };</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> WidgetStateCount = 4;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="keyword">using</span> MouseEventCallback = std::function&lt;void(<a class="code" href="class_sky_engine2d_1_1_event_mouse.html">EventMouse</a>*)&gt;;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keyword">using</span> KeyEventCallback = std::function&lt;void(<a class="code" href="class_sky_engine2d_1_1_event_key.html">EventKey</a>*)&gt;;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keyword">static</span> <a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>* create(<a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>* parent = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        ~<a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>();</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="comment">//WidgetSharedPtr convertToWidgetSharedPtr();</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="keywordtype">void</span> setBackgroundImage(std::unique_ptr&lt;Scale9Image&gt; image, WidgetState state = WidgetState::Normal);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keywordtype">void</span> setBackgroundImage(<span class="keyword">const</span> SpriteFrameSharedPtr&amp; sprite_frame, <a class="code" href="class_sky_engine2d_1_1_rect.html">Rect</a> cap = Rect::Zero, WidgetState state = WidgetState::Normal);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordtype">void</span> setBackgroundImage(<span class="keyword">const</span> std::wstring&amp; file_name, <a class="code" href="class_sky_engine2d_1_1_rect.html">Rect</a> cap = Rect::Zero, WidgetState state = WidgetState::Normal);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keywordtype">void</span> setFont(<span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_font.html">Font</a>&amp; font, WidgetState state = WidgetState::Normal);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <span class="keywordtype">void</span> setTextColor(<span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_color4f.html">Color4f</a>&amp; color, WidgetState state = WidgetState::Normal);</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keywordtype">void</span> setEnabled(<span class="keywordtype">bool</span> enabled);</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <span class="keywordtype">bool</span> isEnabled()<span class="keyword">const</span>;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>* getChildAtPos(<span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>&amp; pos, <span class="keyword">const</span> <span class="keywordtype">bool</span> allowDisable);</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <span class="keywordtype">void</span> move(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keywordtype">void</span> move(<span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>&amp; pos);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_sky_engine2d_1_1_vector2.html">Vector2</a> getPosition() <span class="keyword">const override</span>;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPosition(<span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>&amp; pos) <span class="keyword">override</span>;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_vector2.html">Vector2</a>  getAbsPos()<span class="keyword">const</span>;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keywordtype">void</span> setGeometry(<span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_rect.html">Rect</a>&amp; rect);</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_rect.html">Rect</a>&amp; getGeometry()<span class="keyword">const</span>;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        <span class="keywordtype">void</span> resize(<span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_size.html">Size</a>&amp; size);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_size.html">Size</a>&amp; getSize()<span class="keyword">const</span>;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        <span class="keywordtype">bool</span> isActive()<span class="keyword">const</span>;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        <span class="keywordtype">bool</span> hasFocus()<span class="keyword">const</span>;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        <span class="keywordtype">bool</span> isVisible()<span class="keyword">const</span>;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        <span class="keywordtype">void</span> hide();</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="keywordtype">void</span> show();</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_camera.html">Camera</a>* getCamera()<span class="keyword">const</span>;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        <span class="keywordtype">void</span> setCamera(<a class="code" href="class_sky_engine2d_1_1_camera.html">Camera</a>* camera);</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        <span class="keywordtype">void</span> setFocuse(<span class="keywordtype">bool</span> focuse = <span class="keyword">true</span>);</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        FocusPolicy getFocusPolicy()<span class="keyword">const</span>;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        <span class="keywordtype">void</span> setFocusPolicy(FocusPolicy policy);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keywordtype">bool</span> isDistributeCapturedInputs()<span class="keyword">const</span>;</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>* getActiveChiled()<span class="keyword">const</span>;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_ui_core.html">UiCore</a>* getUiCore()<span class="keyword">const</span>;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        <span class="keywordtype">void</span> setMousePressEventListener(<span class="keyword">const</span> MouseEventCallback&amp; call);</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        <span class="keywordtype">void</span> setMouseReleaseEventListener(<span class="keyword">const</span> MouseEventCallback&amp; call);</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;        <span class="keywordtype">void</span> setMouseMoveEventListener(<span class="keyword">const</span> MouseEventCallback&amp; call);</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keywordtype">void</span> setMouseBoubleClickedEventListener(<span class="keyword">const</span> MouseEventCallback&amp; call);</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> visit(<a class="code" href="class_sky_engine2d_1_1_i_render.html">IRender</a>* render, <span class="keywordtype">bool</span> parent_change_transfrom_mat);</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;</div><div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html">  303</a></span>&#160;        <span class="keyword">struct </span><a class="code" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html">StyleInfor</a></div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        {</div><div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#a41c0e88f7106294bbe766be317944285">  305</a></span>&#160;            std::unique_ptr&lt;Scale9Image&gt; <a class="code" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#a41c0e88f7106294bbe766be317944285">backgroundImage</a>; </div><div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#ae5bbbb5fe8765cd7a5100e269af73555">  306</a></span>&#160;            <a class="code" href="class_sky_engine2d_1_1_color4f.html">Color4f</a>                      <a class="code" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#ae5bbbb5fe8765cd7a5100e269af73555">textColor</a>;      </div><div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#a598df00142df34769fafe5f522524550">  307</a></span>&#160;            <a class="code" href="class_sky_engine2d_1_1_font.html">Font</a>                         <a class="code" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#a598df00142df34769fafe5f522524550">textFont</a>;      </div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        };</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_sky_engine2d_1_1_ui_core.html">UiCore</a>;</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>(<a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>* parent = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> init();</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onKeyPressEvent(<a class="code" href="class_sky_engine2d_1_1_event_key.html">EventKey</a>* event);</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onKeyReleaseEvent(<a class="code" href="class_sky_engine2d_1_1_event_key.html">EventKey</a>* event);</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMousePressEvent(<a class="code" href="class_sky_engine2d_1_1_event_mouse.html">EventMouse</a>* event);</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseReleaseEvent(<a class="code" href="class_sky_engine2d_1_1_event_mouse.html">EventMouse</a>* event);</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseMoveEvent(<a class="code" href="class_sky_engine2d_1_1_event_mouse.html">EventMouse</a>* event);</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseDoubleClickedEvent(<a class="code" href="class_sky_engine2d_1_1_event_mouse.html">EventMouse</a>* event);</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseLeavesEvent(<a class="code" href="class_sky_engine2d_1_1_widget_event.html">WidgetEvent</a>* event);</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMouseEnterEvent(<a class="code" href="class_sky_engine2d_1_1_widget_event.html">WidgetEvent</a>* event);</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onFocusInEvent(<a class="code" href="class_sky_engine2d_1_1_event_focus.html">EventFocus</a>* event);</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onFocusOutEvent(<a class="code" href="class_sky_engine2d_1_1_event_focus.html">EventFocus</a>* event);</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onCharacterEvent(<a class="code" href="class_sky_engine2d_1_1_event_character.html">EventCharacter</a>* e);</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onMoveEvent(<a class="code" href="class_sky_engine2d_1_1_event_widget_move.html">EventWidgetMove</a>* e);</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onActiveEvent(<a class="code" href="class_sky_engine2d_1_1_event_widget_active.html">EventWidgetActive</a>* e);</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onDeactiveEvent(<a class="code" href="class_sky_engine2d_1_1_event_widget_active.html">EventWidgetActive</a>* e);</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onResizeEvent(<a class="code" href="class_sky_engine2d_1_1_event_resize.html">EventResize</a>* e);</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> onEvent(<a class="code" href="class_sky_engine2d_1_1_i_event.html">IEvent</a>* e);</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;</div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_widget.html">Widget</a>* getActiveSibling()<span class="keyword">const</span>;</div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_matrix4_x4.html">Matrix4X4</a>&amp; getParentMat();</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;        <span class="keywordtype">void</span> moveToFront();</div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;</div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        <span class="keywordtype">void</span> captureFocus();</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;        <span class="keywordtype">void</span> releaseFocus();</div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        <span class="keyword">const</span> <a class="code" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html">StyleInfor</a>* getStyleInfor() <span class="keyword">const</span>;</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;        <span class="keyword">const</span> <a class="code" href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html">StyleInfor</a>* getStyleInforByState(<a class="code" href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">WidgetState</a> state)<span class="keyword">const</span>;</div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;</div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        <span class="keywordtype">void</span>  setCurrentWidgetState(<a class="code" href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">WidgetState</a> state);</div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;</div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">WidgetState</a> getCurrentWidgetState()<span class="keyword">const</span>;</div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;</div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">int</span> getDefultWidth()<span class="keyword">const</span>;</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;</div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">int</span> getDefultHeight()<span class="keyword">const</span>;</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;</div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;</div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw(<a class="code" href="class_sky_engine2d_1_1_i_render.html">IRender</a>* render, <span class="keyword">const</span> <a class="code" href="class_sky_engine2d_1_1_matrix4_x4.html">Matrix4X4</a>&amp; transform);</div><div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onWidgetStateChange();</div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> onWidgetStyleChange();</div><div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;</div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;        <span class="keywordtype">bool</span> updateMat(<span class="keywordtype">bool</span> parent_change);</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;        <span class="keyword">const</span> std::unique_ptr&lt;StyleInfor&gt;&amp; getStyleInfoPtr(<a class="code" href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">WidgetState</a> state);</div><div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;</div><div class="line"><a name="l00518"></a><span class="lineno"><a class="line" href="class_sky_engine2d_1_1_widget.html#ad413ce1f509a53f03ab4d0a808f3ff93">  518</a></span>&#160;        <a class="code" href="class_sky_engine2d_1_1_rect.html">Rect</a> <a class="code" href="class_sky_engine2d_1_1_widget.html#ad413ce1f509a53f03ab4d0a808f3ff93">m_geometry</a>;                    </div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        <span class="keywordtype">bool</span> m_isEnabled;                   </div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;        <span class="keywordtype">bool</span> m_isMouseTracking;              <span class="comment">//TODO 可能需要调整 </span></div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        <span class="keywordtype">bool</span> m_isDistributeCapturedInputs;  </div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        <span class="keywordtype">bool</span> m_hasFocus;                    </div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        <span class="keywordtype">bool</span> m_isVisible;                   </div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;        <span class="keywordtype">bool</span> m_isChangeMat;                 </div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        <span class="keywordtype">bool</span> m_isActive;                    </div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_widget.html#a4cd82a245130df2d26cf737e65290656">FocusPolicy</a> m_focusPolicy;          </div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        MouseEventCallback              m_mousePressEventCall;</div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        MouseEventCallback              m_mouseReleaseEventCall;</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        MouseEventCallback              m_mouseMoveEventCall;</div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        MouseEventCallback              m_mouseDoubleClickedEventCall;</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_matrix4_x4.html">Matrix4X4</a>                       m_transformMat;</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;</div><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_ui_core.html">UiCore</a>* m_uiCore;           </div><div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_camera.html">Camera</a>* m_camera;           </div><div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">WidgetState</a> m_widgetState;  </div><div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;        <a class="code" href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">WidgetState</a> m_lastWidgetState; </div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;        std::array&lt;std::unique_ptr&lt;StyleInfor&gt;, Widget::WidgetStateCount&gt; m_styleInfoArr; </div><div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;    };</div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;}</div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;</div><div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;<span class="preprocessor">#endif // Widget_h__</span></div><div class="ttc" id="class_sky_engine2d_1_1_size_html"><div class="ttname"><a href="class_sky_engine2d_1_1_size.html">SkyEngine2d::Size</a></div><div class="ttdoc">尺寸</div><div class="ttdef"><b>Definition:</b> Size.h:29</div></div>
<div class="ttc" id="struct_sky_engine2d_1_1_widget_1_1_style_infor_html"><div class="ttname"><a href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html">SkyEngine2d::Widget::StyleInfor</a></div><div class="ttdef"><b>Definition:</b> Widget.h:303</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_event_mouse_html"><div class="ttname"><a href="class_sky_engine2d_1_1_event_mouse.html">SkyEngine2d::EventMouse</a></div><div class="ttdoc">鼠标事件</div><div class="ttdef"><b>Definition:</b> EventMouse.h:27</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_movable_object_html"><div class="ttname"><a href="class_sky_engine2d_1_1_i_movable_object.html">SkyEngine2d::IMovableObject</a></div><div class="ttdoc">可执行位移动作的接口</div><div class="ttdef"><b>Definition:</b> IActableObject.h:50</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_rect_html"><div class="ttname"><a href="class_sky_engine2d_1_1_rect.html">SkyEngine2d::Rect</a></div><div class="ttdoc">矩形</div><div class="ttdef"><b>Definition:</b> Rect.h:33</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_camera_html"><div class="ttname"><a href="class_sky_engine2d_1_1_camera.html">SkyEngine2d::Camera</a></div><div class="ttdoc">相机</div><div class="ttdef"><b>Definition:</b> Camera.h:30</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_event_focus_html"><div class="ttname"><a href="class_sky_engine2d_1_1_event_focus.html">SkyEngine2d::EventFocus</a></div><div class="ttdoc">焦点事件</div><div class="ttdef"><b>Definition:</b> EventFocus.h:29</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_event_html"><div class="ttname"><a href="class_sky_engine2d_1_1_i_event.html">SkyEngine2d::IEvent</a></div><div class="ttdoc">事件接口</div><div class="ttdef"><b>Definition:</b> IEvent.h:32</div></div>
<div class="ttc" id="struct_sky_engine2d_1_1_widget_1_1_style_infor_html_a41c0e88f7106294bbe766be317944285"><div class="ttname"><a href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#a41c0e88f7106294bbe766be317944285">SkyEngine2d::Widget::StyleInfor::backgroundImage</a></div><div class="ttdeci">std::unique_ptr&lt; Scale9Image &gt; backgroundImage</div><div class="ttdef"><b>Definition:</b> Widget.h:305</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_widget_html"><div class="ttname"><a href="class_sky_engine2d_1_1_widget.html">SkyEngine2d::Widget</a></div><div class="ttdoc">控件基类</div><div class="ttdef"><b>Definition:</b> Widget.h:56</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_widget_html_ae5713a51505d6edff8d7f0821fb30146"><div class="ttname"><a href="class_sky_engine2d_1_1_widget.html#ae5713a51505d6edff8d7f0821fb30146">SkyEngine2d::Widget::WidgetState</a></div><div class="ttdeci">WidgetState</div><div class="ttdoc">窗口的状态</div><div class="ttdef"><b>Definition:</b> Widget.h:73</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_vector2_html"><div class="ttname"><a href="class_sky_engine2d_1_1_vector2.html">SkyEngine2d::Vector2</a></div><div class="ttdoc">2D向量</div><div class="ttdef"><b>Definition:</b> Vector.h:34</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_color4f_html"><div class="ttname"><a href="class_sky_engine2d_1_1_color4f.html">SkyEngine2d::Color4f</a></div><div class="ttdoc">颜色 r,g,b,a 取值为 [0,1]</div><div class="ttdef"><b>Definition:</b> Color.h:223</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_render_html"><div class="ttname"><a href="class_sky_engine2d_1_1_i_render.html">SkyEngine2d::IRender</a></div><div class="ttdoc">渲染接口</div><div class="ttdef"><b>Definition:</b> IRender.h:13</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_event_resize_html"><div class="ttname"><a href="class_sky_engine2d_1_1_event_resize.html">SkyEngine2d::EventResize</a></div><div class="ttdoc">控件尺寸变化事件</div><div class="ttdef"><b>Definition:</b> EventResize.h:28</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_event_key_html"><div class="ttname"><a href="class_sky_engine2d_1_1_event_key.html">SkyEngine2d::EventKey</a></div><div class="ttdoc">键盘事件</div><div class="ttdef"><b>Definition:</b> EventKey.h:29</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_event_character_html"><div class="ttname"><a href="class_sky_engine2d_1_1_event_character.html">SkyEngine2d::EventCharacter</a></div><div class="ttdoc">字符输入事件</div><div class="ttdef"><b>Definition:</b> CharacterEvent.h:29</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_event_widget_active_html"><div class="ttname"><a href="class_sky_engine2d_1_1_event_widget_active.html">SkyEngine2d::EventWidgetActive</a></div><div class="ttdoc">窗口活动事件</div><div class="ttdef"><b>Definition:</b> EventWidgetActive.h:29</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_object_html"><div class="ttname"><a href="class_sky_engine2d_1_1_object.html">SkyEngine2d::Object</a></div><div class="ttdef"><b>Definition:</b> Object.h:51</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_font_html"><div class="ttname"><a href="class_sky_engine2d_1_1_font.html">SkyEngine2d::Font</a></div><div class="ttdef"><b>Definition:</b> Font.h:37</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_widget_html_ad413ce1f509a53f03ab4d0a808f3ff93"><div class="ttname"><a href="class_sky_engine2d_1_1_widget.html#ad413ce1f509a53f03ab4d0a808f3ff93">SkyEngine2d::Widget::m_geometry</a></div><div class="ttdeci">Rect m_geometry</div><div class="ttdef"><b>Definition:</b> Widget.h:518</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_matrix4_x4_html"><div class="ttname"><a href="class_sky_engine2d_1_1_matrix4_x4.html">SkyEngine2d::Matrix4X4</a></div><div class="ttdef"><b>Definition:</b> Matrix.h:29</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_widget_html_a4cd82a245130df2d26cf737e65290656"><div class="ttname"><a href="class_sky_engine2d_1_1_widget.html#a4cd82a245130df2d26cf737e65290656">SkyEngine2d::Widget::FocusPolicy</a></div><div class="ttdeci">FocusPolicy</div><div class="ttdoc">控件获取焦点的策略</div><div class="ttdef"><b>Definition:</b> Widget.h:65</div></div>
<div class="ttc" id="struct_sky_engine2d_1_1_widget_1_1_style_infor_html_ae5bbbb5fe8765cd7a5100e269af73555"><div class="ttname"><a href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#ae5bbbb5fe8765cd7a5100e269af73555">SkyEngine2d::Widget::StyleInfor::textColor</a></div><div class="ttdeci">Color4f textColor</div><div class="ttdef"><b>Definition:</b> Widget.h:306</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_ui_core_html"><div class="ttname"><a href="class_sky_engine2d_1_1_ui_core.html">SkyEngine2d::UiCore</a></div><div class="ttdoc">UI 核心</div><div class="ttdef"><b>Definition:</b> UiCore.h:39</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_widget_event_html"><div class="ttname"><a href="class_sky_engine2d_1_1_widget_event.html">SkyEngine2d::WidgetEvent</a></div><div class="ttdoc">窗口事件的基类</div><div class="ttdef"><b>Definition:</b> WidgetEvent.h:28</div></div>
<div class="ttc" id="struct_sky_engine2d_1_1_widget_1_1_style_infor_html_a598df00142df34769fafe5f522524550"><div class="ttname"><a href="struct_sky_engine2d_1_1_widget_1_1_style_infor.html#a598df00142df34769fafe5f522524550">SkyEngine2d::Widget::StyleInfor::textFont</a></div><div class="ttdeci">Font textFont</div><div class="ttdef"><b>Definition:</b> Widget.h:307</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_event_widget_move_html"><div class="ttname"><a href="class_sky_engine2d_1_1_event_widget_move.html">SkyEngine2d::EventWidgetMove</a></div><div class="ttdoc">窗口移动事件</div><div class="ttdef"><b>Definition:</b> EventWidgetMove.h:29</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
